<?php

//include 'Test2.php';
set_include_path(get_include_path(). PATH_SEPARATOR . 'Lib/');

function __autoload($className){
    echo $className,'<br/>';
    include $className.'.php';
}

$t = new Test2();
echo '<br/>';
$t->t1();
$t1 = new Test();
echo '<br/>';
$t1->t();